<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__lpcomp__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">API Reference</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__lpcomp.html">LPComp       (Low Power Comparator)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
API Reference</h2></td></tr>
<tr class="memitem:group__group__lpcomp__functions__syspm__callback"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions__syspm__callback.html">Low Power Callback</a></td></tr>
<tr class="memdesc:group__group__lpcomp__functions__syspm__callback"><td class="mdescLeft">&#160;</td><td class="mdescRight">The driver supports the SysPm callback for Deep Sleep and Hibernate transition. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaaf6375b7632f40f6c91c2618cd825d05"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__lpcomp__enums.html#gaf31980ad7c767f9317dd498c03f2dea0">cy_en_lpcomp_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaaf6375b7632f40f6c91c2618cd825d05">Cy_LPComp_Init_Ext</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, const <a class="el" href="structcy__stc__lpcomp__config__t.html">cy_stc_lpcomp_config_t</a> *config, <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *context)</td></tr>
<tr class="memdesc:gaaf6375b7632f40f6c91c2618cd825d05"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="group__group__lpcomp__functions.html#gaaf6375b7632f40f6c91c2618cd825d05" title="Cy_LPComp_Init_Ext() is an extended version of existing function Cy_LPComp_Init(). ">Cy_LPComp_Init_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#ga8bd3aa3993770f07ff766dc78c610398" title="Initializes the low-power comparator and returns the status of the initialization. ">Cy_LPComp_Init()</a>.  <a href="#gaaf6375b7632f40f6c91c2618cd825d05">More...</a><br /></td></tr>
<tr class="separator:gaaf6375b7632f40f6c91c2618cd825d05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gade6b4331e7ef29b8a6e05e8f8dfe6247"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gade6b4331e7ef29b8a6e05e8f8dfe6247">Cy_LPComp_Enable_Ext</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *context)</td></tr>
<tr class="memdesc:gade6b4331e7ef29b8a6e05e8f8dfe6247"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="group__group__lpcomp__functions.html#gade6b4331e7ef29b8a6e05e8f8dfe6247" title="Cy_LPComp_Enable_Ext() is an extended version of existing function Cy_LPComp_Enable(). ">Cy_LPComp_Enable_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#gaff74ff9c60f85f25ee5f058162807d06" title="Enables the low-power comparator and sets Interrupt mode. ">Cy_LPComp_Enable()</a>.  <a href="#gade6b4331e7ef29b8a6e05e8f8dfe6247">More...</a><br /></td></tr>
<tr class="separator:gade6b4331e7ef29b8a6e05e8f8dfe6247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0bed47dc7996b32c37537c238e963db6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga0bed47dc7996b32c37537c238e963db6">Cy_LPComp_Disable_Ext</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *context)</td></tr>
<tr class="memdesc:ga0bed47dc7996b32c37537c238e963db6"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="group__group__lpcomp__functions.html#ga0bed47dc7996b32c37537c238e963db6" title="Cy_LPComp_Disable_Ext() is an extended version of existing function Cy_LPComp_Disable(). ">Cy_LPComp_Disable_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#ga4894c0f290bc4d135809f020878ed15b" title="Disables the low-power comparator power and sets Interrupt mode to the disabled state. ">Cy_LPComp_Disable()</a>.  <a href="#ga0bed47dc7996b32c37537c238e963db6">More...</a><br /></td></tr>
<tr class="separator:ga0bed47dc7996b32c37537c238e963db6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8bd3aa3993770f07ff766dc78c610398"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__lpcomp__enums.html#gaf31980ad7c767f9317dd498c03f2dea0">cy_en_lpcomp_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga8bd3aa3993770f07ff766dc78c610398">Cy_LPComp_Init</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, const <a class="el" href="structcy__stc__lpcomp__config__t.html">cy_stc_lpcomp_config_t</a> *config)</td></tr>
<tr class="memdesc:ga8bd3aa3993770f07ff766dc78c610398"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the low-power comparator and returns the status of the initialization.  <a href="#ga8bd3aa3993770f07ff766dc78c610398">More...</a><br /></td></tr>
<tr class="separator:ga8bd3aa3993770f07ff766dc78c610398"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaff74ff9c60f85f25ee5f058162807d06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaff74ff9c60f85f25ee5f058162807d06">Cy_LPComp_Enable</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel)</td></tr>
<tr class="memdesc:gaff74ff9c60f85f25ee5f058162807d06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the low-power comparator and sets Interrupt mode.  <a href="#gaff74ff9c60f85f25ee5f058162807d06">More...</a><br /></td></tr>
<tr class="separator:gaff74ff9c60f85f25ee5f058162807d06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4894c0f290bc4d135809f020878ed15b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga4894c0f290bc4d135809f020878ed15b">Cy_LPComp_Disable</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga4894c0f290bc4d135809f020878ed15b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the low-power comparator power and sets Interrupt mode to the disabled state.  <a href="#ga4894c0f290bc4d135809f020878ed15b">More...</a><br /></td></tr>
<tr class="separator:ga4894c0f290bc4d135809f020878ed15b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5db95b315fde894d5ad522c0cbef462f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga5db95b315fde894d5ad522c0cbef462f">Cy_LPComp_GlobalEnable</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base)</td></tr>
<tr class="memdesc:ga5db95b315fde894d5ad522c0cbef462f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Activates the IP of the low-power comparator hardware block.  <a href="#ga5db95b315fde894d5ad522c0cbef462f">More...</a><br /></td></tr>
<tr class="separator:ga5db95b315fde894d5ad522c0cbef462f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaba3f5bd4bb4dabab03e34e384ee6eebe"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaba3f5bd4bb4dabab03e34e384ee6eebe">Cy_LPComp_GlobalDisable</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base)</td></tr>
<tr class="memdesc:gaba3f5bd4bb4dabab03e34e384ee6eebe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deactivates the IP of the low-power comparator hardware block.  <a href="#gaba3f5bd4bb4dabab03e34e384ee6eebe">More...</a><br /></td></tr>
<tr class="separator:gaba3f5bd4bb4dabab03e34e384ee6eebe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaacaaed309a56a6490306af40822788c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaaacaaed309a56a6490306af40822788c">Cy_LPComp_UlpReferenceEnable</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base)</td></tr>
<tr class="memdesc:gaaacaaed309a56a6490306af40822788c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the local reference generator circuit to generate the local Vref and Ibias.  <a href="#gaaacaaed309a56a6490306af40822788c">More...</a><br /></td></tr>
<tr class="separator:gaaacaaed309a56a6490306af40822788c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaab411d8e411323193819a64488a41544"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaab411d8e411323193819a64488a41544">Cy_LPComp_UlpReferenceDisable</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base)</td></tr>
<tr class="memdesc:gaab411d8e411323193819a64488a41544"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the local reference-generator circuit.  <a href="#gaab411d8e411323193819a64488a41544">More...</a><br /></td></tr>
<tr class="separator:gaab411d8e411323193819a64488a41544"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc91cd80afbb17ee87fbd38dd963ec2e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gadc91cd80afbb17ee87fbd38dd963ec2e">Cy_LPComp_GetCompare</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel)</td></tr>
<tr class="memdesc:gadc91cd80afbb17ee87fbd38dd963ec2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function returns a non-zero value when the voltage connected to the positive input is greater than the negative input voltage.  <a href="#gadc91cd80afbb17ee87fbd38dd963ec2e">More...</a><br /></td></tr>
<tr class="separator:gadc91cd80afbb17ee87fbd38dd963ec2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga125ecf3021339e4ffae3200f6197079c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga125ecf3021339e4ffae3200f6197079c">Cy_LPComp_SetPower_Ext</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#ga807c85d836c327c00a8a5ee52d6a93e6">cy_en_lpcomp_pwr_t</a> power, <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *context)</td></tr>
<tr class="memdesc:ga125ecf3021339e4ffae3200f6197079c"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="group__group__lpcomp__functions.html#ga125ecf3021339e4ffae3200f6197079c" title="Cy_LPComp_SetPower_Ext() is an extended version of existing function Cy_LPComp_SetPower(). ">Cy_LPComp_SetPower_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#gabf02edb4c1ca19009f2f1f1df1156afa" title="Sets the drive power and speeds to one of the four settings. ">Cy_LPComp_SetPower()</a>.  <a href="#ga125ecf3021339e4ffae3200f6197079c">More...</a><br /></td></tr>
<tr class="separator:ga125ecf3021339e4ffae3200f6197079c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf02edb4c1ca19009f2f1f1df1156afa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gabf02edb4c1ca19009f2f1f1df1156afa">Cy_LPComp_SetPower</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#ga807c85d836c327c00a8a5ee52d6a93e6">cy_en_lpcomp_pwr_t</a> power)</td></tr>
<tr class="memdesc:gabf02edb4c1ca19009f2f1f1df1156afa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the drive power and speeds to one of the four settings.  <a href="#gabf02edb4c1ca19009f2f1f1df1156afa">More...</a><br /></td></tr>
<tr class="separator:gabf02edb4c1ca19009f2f1f1df1156afa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab3eaf7a6243e832967c6606b5f8ab368"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gab3eaf7a6243e832967c6606b5f8ab368">Cy_LPComp_SetHysteresis</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#gada8e5d16a9fcb0b9cbad23449cdf51ab">cy_en_lpcomp_hyst_t</a> hysteresis)</td></tr>
<tr class="memdesc:gab3eaf7a6243e832967c6606b5f8ab368"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the 30mV hysteresis to the comparator.  <a href="#gab3eaf7a6243e832967c6606b5f8ab368">More...</a><br /></td></tr>
<tr class="separator:gab3eaf7a6243e832967c6606b5f8ab368"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86039c548754145643a780320928c8f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga86039c548754145643a780320928c8f0">Cy_LPComp_SetInputs</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#ga3064b8f5a4564e4d002df51ee8f96962">cy_en_lpcomp_inputs_t</a> inputP, <a class="el" href="group__group__lpcomp__enums.html#ga3064b8f5a4564e4d002df51ee8f96962">cy_en_lpcomp_inputs_t</a> inputN)</td></tr>
<tr class="memdesc:ga86039c548754145643a780320928c8f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the comparator input sources.  <a href="#ga86039c548754145643a780320928c8f0">More...</a><br /></td></tr>
<tr class="separator:ga86039c548754145643a780320928c8f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa2bcd67bfc73396d4401a71989a36803"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaa2bcd67bfc73396d4401a71989a36803">Cy_LPComp_SetOutputMode</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#gabdb04cbeeda3390491f1927ec54754d9">cy_en_lpcomp_out_t</a> outType)</td></tr>
<tr class="memdesc:gaa2bcd67bfc73396d4401a71989a36803"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the type of the comparator DSI output.  <a href="#gaa2bcd67bfc73396d4401a71989a36803">More...</a><br /></td></tr>
<tr class="separator:gaa2bcd67bfc73396d4401a71989a36803"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaccc7a72f8456824bab3793c74d4604e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaccc7a72f8456824bab3793c74d4604e9">Cy_LPComp_SetInterruptTriggerMode_Ext</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#gab12edb4e44ead54254de2168b92b4213">cy_en_lpcomp_int_t</a> intType, <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *context)</td></tr>
<tr class="memdesc:gaccc7a72f8456824bab3793c74d4604e9"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="group__group__lpcomp__functions.html#gaccc7a72f8456824bab3793c74d4604e9" title="Cy_LPComp_SetInterruptTriggerMode_Ext() is an extended version of existing function Cy_LPComp_SetInte...">Cy_LPComp_SetInterruptTriggerMode_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#gac4dc8de0329cb2191b1ded546a595afe" title="This function sets the interrupt edge-detect mode and controls the value provided on the output...">Cy_LPComp_SetInterruptTriggerMode()</a>.  <a href="#gaccc7a72f8456824bab3793c74d4604e9">More...</a><br /></td></tr>
<tr class="separator:gaccc7a72f8456824bab3793c74d4604e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac4dc8de0329cb2191b1ded546a595afe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gac4dc8de0329cb2191b1ded546a595afe">Cy_LPComp_SetInterruptTriggerMode</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel, <a class="el" href="group__group__lpcomp__enums.html#gab12edb4e44ead54254de2168b92b4213">cy_en_lpcomp_int_t</a> intType)</td></tr>
<tr class="memdesc:gac4dc8de0329cb2191b1ded546a595afe"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the interrupt edge-detect mode and controls the value provided on the output.  <a href="#gac4dc8de0329cb2191b1ded546a595afe">More...</a><br /></td></tr>
<tr class="separator:gac4dc8de0329cb2191b1ded546a595afe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3819ae37b76dcf760d1303209be7b0d0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga3819ae37b76dcf760d1303209be7b0d0">Cy_LPComp_GetInterruptStatus</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *base)</td></tr>
<tr class="memdesc:ga3819ae37b76dcf760d1303209be7b0d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of two different low-power comparator interrupt requests.  <a href="#ga3819ae37b76dcf760d1303209be7b0d0">More...</a><br /></td></tr>
<tr class="separator:ga3819ae37b76dcf760d1303209be7b0d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5197f02cfc236a0280d7d18e52cfb916"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga5197f02cfc236a0280d7d18e52cfb916">Cy_LPComp_ClearInterrupt</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, uint32_t interrupt)</td></tr>
<tr class="memdesc:ga5197f02cfc236a0280d7d18e52cfb916"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears low-power comparator interrupts by setting each bit.  <a href="#ga5197f02cfc236a0280d7d18e52cfb916">More...</a><br /></td></tr>
<tr class="separator:ga5197f02cfc236a0280d7d18e52cfb916"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga184c461e2ee0a500e30e2ad4807603da"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga184c461e2ee0a500e30e2ad4807603da">Cy_LPComp_SetInterrupt</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, uint32_t interrupt)</td></tr>
<tr class="memdesc:ga184c461e2ee0a500e30e2ad4807603da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a software interrupt request.  <a href="#ga184c461e2ee0a500e30e2ad4807603da">More...</a><br /></td></tr>
<tr class="separator:ga184c461e2ee0a500e30e2ad4807603da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4d7116e9f4b6355d25eae13b90b7eeff"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga4d7116e9f4b6355d25eae13b90b7eeff">Cy_LPComp_GetInterruptMask</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *base)</td></tr>
<tr class="memdesc:ga4d7116e9f4b6355d25eae13b90b7eeff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an interrupt mask.  <a href="#ga4d7116e9f4b6355d25eae13b90b7eeff">More...</a><br /></td></tr>
<tr class="separator:ga4d7116e9f4b6355d25eae13b90b7eeff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68279aa775be86f1906f07cb077e67e4"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga68279aa775be86f1906f07cb077e67e4">Cy_LPComp_SetInterruptMask</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, uint32_t interrupt)</td></tr>
<tr class="memdesc:ga68279aa775be86f1906f07cb077e67e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures which bits of the interrupt request register will trigger an interrupt event.  <a href="#ga68279aa775be86f1906f07cb077e67e4">More...</a><br /></td></tr>
<tr class="separator:ga68279aa775be86f1906f07cb077e67e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga912aa8e2ad1b4ffaf8f4ff506969752b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#ga912aa8e2ad1b4ffaf8f4ff506969752b">Cy_LPComp_GetInterruptStatusMasked</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *base)</td></tr>
<tr class="memdesc:ga912aa8e2ad1b4ffaf8f4ff506969752b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an interrupt request register masked by an interrupt mask.  <a href="#ga912aa8e2ad1b4ffaf8f4ff506969752b">More...</a><br /></td></tr>
<tr class="separator:ga912aa8e2ad1b4ffaf8f4ff506969752b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa6a135c020dbeb79383da693f95a5ee7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__lpcomp__functions.html#gaa6a135c020dbeb79383da693f95a5ee7">Cy_LPComp_ConnectULPReference</a> (<a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *base, <a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a> channel)</td></tr>
<tr class="memdesc:gaa6a135c020dbeb79383da693f95a5ee7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects the local reference generator output to the comparator negative input.  <a href="#gaa6a135c020dbeb79383da693f95a5ee7">More...</a><br /></td></tr>
<tr class="separator:gaa6a135c020dbeb79383da693f95a5ee7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaaf6375b7632f40f6c91c2618cd825d05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaf6375b7632f40f6c91c2618cd825d05">&#9670;&nbsp;</a></span>Cy_LPComp_Init_Ext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__lpcomp__enums.html#gaf31980ad7c767f9317dd498c03f2dea0">cy_en_lpcomp_status_t</a> Cy_LPComp_Init_Ext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__lpcomp__config__t.html">cy_stc_lpcomp_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="group__group__lpcomp__functions.html#gaaf6375b7632f40f6c91c2618cd825d05" title="Cy_LPComp_Init_Ext() is an extended version of existing function Cy_LPComp_Init(). ">Cy_LPComp_Init_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#ga8bd3aa3993770f07ff766dc78c610398" title="Initializes the low-power comparator and returns the status of the initialization. ">Cy_LPComp_Init()</a>. </p>
<p>This implementation follows the thread-safe approach and is preferable for usage.</p>
<p>This function initializes the low-power comparator and returns the status of the initialization.</p>
<dl class="section note"><dt>Note</dt><dd>Interrupt edge-detect mode and drive power mode are not written to the registers during the function execution. This can result in unexpected interrupts when the comparator is enabled. Instead, the configurations are saved to the context and applied in the <a class="el" href="group__group__lpcomp__functions.html#gade6b4331e7ef29b8a6e05e8f8dfe6247">Cy_LPComp_Enable_Ext()</a> function.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator registers structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">*config</td><td>The pointer to the configuration structure for PDL.</td></tr>
    <tr><td class="paramname">*context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> allocated by the user. The structure is used during the low-power comparator operation for internal configuration and data retention. The user must not modify anything in this structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_en_lpcomp_status_t *base checking result. If the pointer is NULL, returns an error. </dd></dl>

</div>
</div>
<a id="gade6b4331e7ef29b8a6e05e8f8dfe6247"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gade6b4331e7ef29b8a6e05e8f8dfe6247">&#9670;&nbsp;</a></span>Cy_LPComp_Enable_Ext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_Enable_Ext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="group__group__lpcomp__functions.html#gade6b4331e7ef29b8a6e05e8f8dfe6247" title="Cy_LPComp_Enable_Ext() is an extended version of existing function Cy_LPComp_Enable(). ">Cy_LPComp_Enable_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#gaff74ff9c60f85f25ee5f058162807d06" title="Enables the low-power comparator and sets Interrupt mode. ">Cy_LPComp_Enable()</a>. </p>
<p>This implementation follows the thread-safe approach and is preferable for usage.</p>
<p>This function enables the low-power comparator and sets interrupt edge-detect and drive power modes.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">*context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> allocated by the user. The structure is used during the low-power comparator operation for internal configuration and data retention. The user must not modify anything in this structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga0bed47dc7996b32c37537c238e963db6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0bed47dc7996b32c37537c238e963db6">&#9670;&nbsp;</a></span>Cy_LPComp_Disable_Ext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_Disable_Ext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="group__group__lpcomp__functions.html#ga0bed47dc7996b32c37537c238e963db6" title="Cy_LPComp_Disable_Ext() is an extended version of existing function Cy_LPComp_Disable(). ">Cy_LPComp_Disable_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#ga4894c0f290bc4d135809f020878ed15b" title="Disables the low-power comparator power and sets Interrupt mode to the disabled state. ">Cy_LPComp_Disable()</a>. </p>
<p>This implementation follows the thread-safe approach and is preferable for usage.</p>
<p>This function disables the low-power comparator power and sets interrupt edge-detect mode to the disabled state.</p>
<dl class="section note"><dt>Note</dt><dd>This function disables the comparator interrupt to prevent a false trigger that may happen due to stop working of the comparator unpowered output. <br />
 </dd>
<dd>
Disabled states for comparator interrupt and drive power are not preserved in the context. The actual configurations for interrupt edge-detect and drive power are restored from the context in: <a class="el" href="group__group__lpcomp__functions.html#gade6b4331e7ef29b8a6e05e8f8dfe6247">Cy_LPComp_Enable_Ext()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">*context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> allocated by the user. The structure is used during the low-power comparator operation for internal configuration and data retention. The user must not modify anything in this structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga8bd3aa3993770f07ff766dc78c610398"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8bd3aa3993770f07ff766dc78c610398">&#9670;&nbsp;</a></span>Cy_LPComp_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__lpcomp__enums.html#gaf31980ad7c767f9317dd498c03f2dea0">cy_en_lpcomp_status_t</a> Cy_LPComp_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__lpcomp__config__t.html">cy_stc_lpcomp_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the low-power comparator and returns the status of the initialization. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator registers structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">*config</td><td>The pointer to the configuration structure for PDL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_en_lpcomp_status_t *base checking result. If the pointer is NULL, returns an error. </dd></dl>

</div>
</div>
<a id="gaff74ff9c60f85f25ee5f058162807d06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaff74ff9c60f85f25ee5f058162807d06">&#9670;&nbsp;</a></span>Cy_LPComp_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_Enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the low-power comparator and sets Interrupt mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga4894c0f290bc4d135809f020878ed15b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4894c0f290bc4d135809f020878ed15b">&#9670;&nbsp;</a></span>Cy_LPComp_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_Disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the low-power comparator power and sets Interrupt mode to the disabled state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga5db95b315fde894d5ad522c0cbef462f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5db95b315fde894d5ad522c0cbef462f">&#9670;&nbsp;</a></span>Cy_LPComp_GlobalEnable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_GlobalEnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Activates the IP of the low-power comparator hardware block. </p>
<p>Call this function before operating any comparator channel. </p><dl class="section note"><dt>Note</dt><dd>Interrupts can be enabled after the block is enabled and appropriate start-up time has elapsed:<ul>
<li>3 us for normal power mode;</li>
<li>6 us for LP mode;</li>
<li>50 us for ULP mode.</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gaba3f5bd4bb4dabab03e34e384ee6eebe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaba3f5bd4bb4dabab03e34e384ee6eebe">&#9670;&nbsp;</a></span>Cy_LPComp_GlobalDisable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_GlobalDisable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deactivates the IP of the low-power comparator hardware block. </p>
<p>(Analog is in power down, open all switches, all clocks are off).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gaaacaaed309a56a6490306af40822788c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaacaaed309a56a6490306af40822788c">&#9670;&nbsp;</a></span>Cy_LPComp_UlpReferenceEnable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_UlpReferenceEnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the local reference generator circuit to generate the local Vref and Ibias. </p>
<dl class="section note"><dt>Note</dt><dd>The Ibias current is an alternative to the reference current generated by the SRSS. Use Ibias current for the comparator in ULP mode, refer to <a class="el" href="group__group__lpcomp__enums.html#ga807c85d836c327c00a8a5ee52d6a93e6">cy_en_lpcomp_pwr_t</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gaab411d8e411323193819a64488a41544"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaab411d8e411323193819a64488a41544">&#9670;&nbsp;</a></span>Cy_LPComp_UlpReferenceDisable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_UlpReferenceDisable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the local reference-generator circuit. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gadc91cd80afbb17ee87fbd38dd963ec2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc91cd80afbb17ee87fbd38dd963ec2e">&#9670;&nbsp;</a></span>Cy_LPComp_GetCompare()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_LPComp_GetCompare </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function returns a non-zero value when the voltage connected to the positive input is greater than the negative input voltage. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The low-power comparator compare result. The value is a non-zero when the voltage connected to the positive input is greater than the negative input voltage. </dd></dl>

</div>
</div>
<a id="ga125ecf3021339e4ffae3200f6197079c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga125ecf3021339e4ffae3200f6197079c">&#9670;&nbsp;</a></span>Cy_LPComp_SetPower_Ext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetPower_Ext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#ga807c85d836c327c00a8a5ee52d6a93e6">cy_en_lpcomp_pwr_t</a>&#160;</td>
          <td class="paramname"><em>power</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="group__group__lpcomp__functions.html#ga125ecf3021339e4ffae3200f6197079c" title="Cy_LPComp_SetPower_Ext() is an extended version of existing function Cy_LPComp_SetPower(). ">Cy_LPComp_SetPower_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#gabf02edb4c1ca19009f2f1f1df1156afa" title="Sets the drive power and speeds to one of the four settings. ">Cy_LPComp_SetPower()</a>. </p>
<p>This implementation follows the thread-safe approach and is preferable for usage.</p>
<p>This function sets the drive power and speeds to one of the four settings.</p>
<dl class="section note"><dt>Note</dt><dd>The drive power mode is preserved in the context, except state CY_LPCOMP_MODE_OFF. <br />
 </dd>
<dd>
The mode of the interrupt is restored after the block is enabled and appropriate start-up time has elapsed:<ul>
<li>3 us for normal power mode;</li>
<li>6 us for LP mode;</li>
<li>50 us for ULP mode. Otherwise, unexpected interrupts can occur.</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">power</td><td>Defines the component power mode:<ul>
<li>CY_LPCOMP_OFF_POWER (=0) - off power;</li>
<li>CY_LPCOMP_MODE_ULP (=1) - slow/ultra low power;</li>
<li>CY_LPCOMP_MODE_LP (=2) - medium/low power;</li>
<li>CY_LPCOMP_MODE_NORMAL (=3) - fast/normal power.</li>
</ul>
</td></tr>
    <tr><td class="paramname">*context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> allocated by the user. The structure is used during the low-power comparator operation for internal configuration and data retention. The user must not modify anything in this structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gabf02edb4c1ca19009f2f1f1df1156afa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabf02edb4c1ca19009f2f1f1df1156afa">&#9670;&nbsp;</a></span>Cy_LPComp_SetPower()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetPower </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#ga807c85d836c327c00a8a5ee52d6a93e6">cy_en_lpcomp_pwr_t</a>&#160;</td>
          <td class="paramname"><em>power</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the drive power and speeds to one of the four settings. </p>
<dl class="section note"><dt>Note</dt><dd>Interrupts can be enabled after the block is enabled and appropriate start-up time has elapsed:<ul>
<li>3 us for normal power mode;</li>
<li>6 us for LP mode;</li>
<li>50 us for ULP mode. Otherwise, unexpected interrupts can occur.</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">power</td><td>Defines the component power mode:<ul>
<li>CY_LPCOMP_OFF_POWER (=0) - off power;</li>
<li>CY_LPCOMP_MODE_ULP (=1) - slow/ultra low power;</li>
<li>CY_LPCOMP_MODE_LP (=2) - medium/low power;</li>
<li>CY_LPCOMP_MODE_NORMAL (=3) - fast/normal power.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gab3eaf7a6243e832967c6606b5f8ab368"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab3eaf7a6243e832967c6606b5f8ab368">&#9670;&nbsp;</a></span>Cy_LPComp_SetHysteresis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetHysteresis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gada8e5d16a9fcb0b9cbad23449cdf51ab">cy_en_lpcomp_hyst_t</a>&#160;</td>
          <td class="paramname"><em>hysteresis</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds the 30mV hysteresis to the comparator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">hysteresis</td><td>Defines the component operation mode:<ul>
<li>CY_LPCOMP_HYST_ENABLE (=1) - enables HYST;</li>
<li>CY_LPCOMP_HYST_DISABLE (=0) - disables HYST.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga86039c548754145643a780320928c8f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga86039c548754145643a780320928c8f0">&#9670;&nbsp;</a></span>Cy_LPComp_SetInputs()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetInputs </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#ga3064b8f5a4564e4d002df51ee8f96962">cy_en_lpcomp_inputs_t</a>&#160;</td>
          <td class="paramname"><em>inputP</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#ga3064b8f5a4564e4d002df51ee8f96962">cy_en_lpcomp_inputs_t</a>&#160;</td>
          <td class="paramname"><em>inputN</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the comparator input sources. </p>
<p>The comparator inputs can be connected to the dedicated GPIO pins or AMUXBUSA/AMUXBUSB. Additionally, the negative comparator input can be connected to the local VREF. Even one unconnected input causes a comparator undefined output.</p>
<dl class="section note"><dt>Note</dt><dd>Connection to AMUXBUSA/AMUXBUSB requires closing the additional switches, which are part of the IO system. These switches can be configured using the HSIOM-&gt;AMUX_SPLIT_CTL[3] register. For details, refer to the appropriate Technical Reference Manual (TRM).</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">inputP</td><td>Positive input selection:<ul>
<li>CY_LPCOMP_SW_GPIO (0x01u);</li>
<li>CY_LPCOMP_SW_AMUXBUSA (0x02u) - Hi-Z in Hibernate mode;</li>
<li>CY_LPCOMP_SW_AMUXBUSB (0x04u) - Hi-Z in Hibernate mode. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>: the option AMUXBUS should NOT be selected in case of usage device from CAT1D family.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inputN</td><td>Negative input selection:<ul>
<li>CY_LPCOMP_SW_GPIO (0x01u);</li>
<li>CY_LPCOMP_SW_AMUXBUSA (0x02u) - Hi-Z in Hibernate mode;</li>
<li>CY_LPCOMP_SW_AMUXBUSB (0x04u) - Hi-Z in Hibernate mode;</li>
<li>CY_LPCOMP_SW_LOCAL_VREF (0x08u) - the negative input only for a crude REF. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>: the option AMUXBUS should NOT be selected in case of usage device from CAT1D family.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gaa2bcd67bfc73396d4401a71989a36803"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa2bcd67bfc73396d4401a71989a36803">&#9670;&nbsp;</a></span>Cy_LPComp_SetOutputMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetOutputMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gabdb04cbeeda3390491f1927ec54754d9">cy_en_lpcomp_out_t</a>&#160;</td>
          <td class="paramname"><em>outType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the type of the comparator DSI output. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">outType</td><td>Interrupt-edge trigger selection:<ul>
<li>CY_LPCOMP_OUT_PULSE (=0) - the DSI output with the pulse option, no bypass;</li>
<li>CY_LPCOMP_OUT_DIRECT (=1) - Bypass mode, the direct output of the comparator;</li>
<li>CY_LPCOMP_OUT_SYNC (=2) - the DSI output with the level option, it is similar to Bypass mode, but it is 1 cycle slower. [DSI_LEVELx : DSI_BYPASSx] = [Bit11 : Bit10] 0 : 0 = 0x00 -&gt; Pulse (PULSE) 1 : 0 = 0x02 -&gt; Level (SYNC) x : 1 = 0x01 -&gt; Bypass (Direct).</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gaccc7a72f8456824bab3793c74d4604e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaccc7a72f8456824bab3793c74d4604e9">&#9670;&nbsp;</a></span>Cy_LPComp_SetInterruptTriggerMode_Ext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetInterruptTriggerMode_Ext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gab12edb4e44ead54254de2168b92b4213">cy_en_lpcomp_int_t</a>&#160;</td>
          <td class="paramname"><em>intType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="group__group__lpcomp__functions.html#gaccc7a72f8456824bab3793c74d4604e9" title="Cy_LPComp_SetInterruptTriggerMode_Ext() is an extended version of existing function Cy_LPComp_SetInte...">Cy_LPComp_SetInterruptTriggerMode_Ext()</a> is an extended version of existing function <a class="el" href="group__group__lpcomp__functions.html#gac4dc8de0329cb2191b1ded546a595afe" title="This function sets the interrupt edge-detect mode and controls the value provided on the output...">Cy_LPComp_SetInterruptTriggerMode()</a>. </p>
<p>This implementation follows the thread-safe approach and is preferable for usage.</p>
<p>This function sets the interrupt edge-detect mode and controls the value provided on the output.</p>
<dl class="section note"><dt>Note</dt><dd>The interrupt edge-detect mode is preserved in the context, except state CY_LPCOMP_INTR_DISABLE. <br />
 </dd>
<dd>
The mode of the interrupt is restored after the block is enabled and appropriate start-up time has elapsed:<ul>
<li>3 us is for normal power mode;</li>
<li>6 us for LP mode;</li>
<li>50 us for ULP mode.</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">intType</td><td>Interrupt edge trigger selection:<ul>
<li>CY_LPCOMP_INTR_DISABLE (=0) - disabled, no interrupt will be detected;</li>
<li>CY_LPCOMP_INTR_RISING (=1) - the rising edge;</li>
<li>CY_LPCOMP_INTR_FALLING (=2) - the falling edge;</li>
<li>CY_LPCOMP_INTR_BOTH (=3) - both rising and falling edges.</li>
</ul>
</td></tr>
    <tr><td class="paramname">*context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__lpcomp__context__t.html">cy_stc_lpcomp_context_t</a> allocated by the user. The structure is used during the low-power comparator operation for internal configuration and data retention. The user must not modify anything in this structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gac4dc8de0329cb2191b1ded546a595afe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac4dc8de0329cb2191b1ded546a595afe">&#9670;&nbsp;</a></span>Cy_LPComp_SetInterruptTriggerMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_LPComp_SetInterruptTriggerMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gab12edb4e44ead54254de2168b92b4213">cy_en_lpcomp_int_t</a>&#160;</td>
          <td class="paramname"><em>intType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sets the interrupt edge-detect mode and controls the value provided on the output. </p>
<dl class="section note"><dt>Note</dt><dd>Interrupts can be enabled after the block is enabled and appropriate start-up time has elapsed:<ul>
<li>3 us is for normal power mode;</li>
<li>6 us for LP mode;</li>
<li>50 us for ULP mode.</li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
    <tr><td class="paramname">intType</td><td>The interrupt edge trigger selection:<ul>
<li>CY_LPCOMP_INTR_DISABLE (=0) - disabled, no interrupt will be detected;</li>
<li>CY_LPCOMP_INTR_RISING (=1) - the rising edge;</li>
<li>CY_LPCOMP_INTR_FALLING (=2) - the falling edge;</li>
<li>CY_LPCOMP_INTR_BOTH (=3) - both rising and falling edges.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga3819ae37b76dcf760d1303209be7b0d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3819ae37b76dcf760d1303209be7b0d0">&#9670;&nbsp;</a></span>Cy_LPComp_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_LPComp_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of two different low-power comparator interrupt requests. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bit mapping information:<ul>
<li>Bit 0: COMP0 interrupt status</li>
<li>Bit 1: COMP1 interrupt status </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga5197f02cfc236a0280d7d18e52cfb916"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5197f02cfc236a0280d7d18e52cfb916">&#9670;&nbsp;</a></span>Cy_LPComp_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears low-power comparator interrupts by setting each bit. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">interrupt</td><td><ul>
<li>Bit 0: COMP0 interrupt status</li>
<li>Bit 1: COMP1 interrupt status</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga184c461e2ee0a500e30e2ad4807603da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga184c461e2ee0a500e30e2ad4807603da">&#9670;&nbsp;</a></span>Cy_LPComp_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a software interrupt request. </p>
<p>This function is used in the case of combined interrupt signal from the global signal reference. This function from either component instance can be used to trigger either or both software interrupts. The function sets the INTR_SET interrupt mask.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">interrupt</td><td><ul>
<li>Bit 0: COMP0 interrupt status</li>
<li>Bit 1: COMP1 interrupt status</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga4d7116e9f4b6355d25eae13b90b7eeff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4d7116e9f4b6355d25eae13b90b7eeff">&#9670;&nbsp;</a></span>Cy_LPComp_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_LPComp_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bit mapping information:<ul>
<li>Bit 0: COMP0 interrupt mask</li>
<li>Bit 1: COMP1 interrupt mask </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga68279aa775be86f1906f07cb077e67e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga68279aa775be86f1906f07cb077e67e4">&#9670;&nbsp;</a></span>Cy_LPComp_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures which bits of the interrupt request register will trigger an interrupt event. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">interrupt</td><td>uint32_t interruptMask: Bit Mask of interrupts to set.<ul>
<li>Bit 0: COMP0 interrupt mask</li>
<li>Bit 1: COMP1 interrupt mask</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ga912aa8e2ad1b4ffaf8f4ff506969752b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga912aa8e2ad1b4ffaf8f4ff506969752b">&#9670;&nbsp;</a></span>Cy_LPComp_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_LPComp_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns an interrupt request register masked by an interrupt mask. </p>
<p>Returns the result of the bitwise AND operation between the corresponding interrupt request and mask bits.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bit mapping information:<ul>
<li>Bit 0: COMP0 interrupt masked</li>
<li>Bit 1: COMP1 interrupt masked </li>
</ul>
</dd></dl>

</div>
</div>
<a id="gaa6a135c020dbeb79383da693f95a5ee7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa6a135c020dbeb79383da693f95a5ee7">&#9670;&nbsp;</a></span>Cy_LPComp_ConnectULPReference()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_LPComp_ConnectULPReference </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_l_p_c_o_m_p___type.html">LPCOMP_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__lpcomp__enums.html#gaf3944a03ab86845a63e0b8a2d29ca1b1">cy_en_lpcomp_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Connects the local reference generator output to the comparator negative input. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*base</td><td>The low-power comparator register structure pointer.</td></tr>
    <tr><td class="paramname">channel</td><td>The low-power comparator channel index.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
